﻿
using System.Collections;

public class BaseDomain {

    public IOMessage ToMessage(int code, int state = IOStates.STATE_OK)
    {
        HashtableEx hashEx = new HashtableEx();
        Hashtable hashData = new Hashtable();
        FillMessage(hashData);
        hashEx.SetData(hashData);
        return new IOMessage(code, state, hashEx);
    }

    protected virtual void FillMessage(Hashtable data)
    {

    }
}
